package org.example.erat;

import org.example.erat.controller.EratController;
import org.example.erat.view.SwingView;
import org.example.erat.view.View;

import javax.swing.*;

public class App {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            View view = new SwingView();
            EratController controller = new EratController(view);
            ((SwingView) view).setController(controller);
            ((SwingView) view).startApplication();
        });
    }
}

